if (script_enabled('confirm_unload') == "true") 
{
  function confirmExit()
  {
    return "Are you sure you want to leave this page? If you're seeing this message and didn't click on a link, that anti-virus ad may be attempting to hijack your machine.";
  }
	window.onbeforeunload = confirmExit; 
}